﻿# -*- coding:utf-8 -*-

# 配置拼多多地址
domain = 'https://mms.pinduoduo.com'
# 配置ws连接
ws_connect = '***************'

domain_url = {
    # 增量采集
    'orders_url':domain + '/mars/shop/recentOrderList',
    # 订单详情接口
    'details_url':domain + '/mars/shop/orderDetail',
    #订单评价接口
    'comments_url':domain + '/saturn/reviews/list',
    #店铺评分DSR
    'score_url':domain + '/sydney/api/mallDsr/queryDsrResult',
    #物流信息
    'logistics_url':domain + '/express_base/mms/track/{0}?source=MMS_ORDER',
    # 备注信息
    'notes_url':domain + '/mars/shop/addOrderNote',
    # 订单备注
    'order_note_url':domain + '/mars/shop/getNoteList',
    #授权登录
    'auth_url':'http://open-api.pinduoduo.com/oauth/token'
}

# Redis地址连接
# host='localhost', port=6379, db=0
rConfig = {

    'host':'localhost',
    'port':6379,
    'db':0

}

# 拼多多API公共地址
api_router = 'http://gw-api.pinduoduo.com/api/router?'

# 配置拼多多密钥
secret_key = {

    'client_id':'****************************',
    'client_secret':'*****************************',
    
}

# User—Agent
header = {

        "accept": "application/json, text/javascript, */*; q=0.01",
        "accept-encoding": "gzip, deflate, br",
        "accept-language": "zh-CN,zh;q=0.9",
        "content-type": "application/json;charset=UTF-8",
        "cookie": "api_uid=rBQR7F1wo5oA8Faxr9j6Ag==; _nano_fp=XpdjnqEonqCYX0TyXC_osJc1EpPkOn2FgQXY2Ism; PASS_ID=1-nrq1QlIHFwn627ahLg7ShtoFzH0kFnAjna/nzu+RXc/zA+HmvZ6QmQxIiCu/n/i/+8D8qvPfHgWLdqjj6jGD6Q_824868601_35060818; JSESSIONID=1B213BC6E79BEF4BE4C7130707B0163",
        "origin": "https://mms.pinduoduo.com",
        "user-agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537."
}

# 配置api请求头
headers = {'Content-Type': 'application/json'}

